package org.young.admin.common.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author young
 * @date 2021/5/12 17:05
 * @description:
 */
@Component
@SuppressWarnings("all")
public class JWTProperties {

	/**
	 * 默认30分钟 jwt 过期
	 */
	@Value("${young.jwt.expireTime:1800000}")
	private Long expireTime;
	/**
	 * 缓存刷新时间
	 */
	@Value("${young.jwt.refreshExpireTime:3600000}")
	private Long refreshExpireTime;

	public Long getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Long expireTime) {
		this.expireTime = expireTime;
	}

	public Long getRefreshExpireTime() {
		return refreshExpireTime;
	}

	public void setRefreshExpireTime(Long refreshExpireTime) {
		this.refreshExpireTime = refreshExpireTime;
	}
}
